{% extends "base.html" %}
{% block head %}
  <script type="text/javascript">
  //<![CDATA[
  //]]>
  </script>
{% endblock %}
{% block body %}
	<h1>CBN|第一财经</h1>
	{% if pages %}
	<div class="pager">
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
	{% if columns %}
	<div id="columngallery">
		<ul class="gallery">
		{% for column in columns %}
		<li class="column">
			<a href="/column/{{ column.cbnid}}{% if is_admin %}?action=update{% endif %}">
			{% if column.cover %}
				<img class="cover" src="{{column.cover}}" alt="{{column.title_cn}}">
			{% else %}
				<img class="cover" src="http://www.1cbn.com/inc/images/newhead-02.gif" alt="{{column.title_cn}}">
			{% endif %}
			</a>
			<div class="name">&gt;<a class="columnlink" title="{{column.title_cn}}" href="/column/{{column.cbnid}}{% if is_admin %}?action=update{% endif %}">{{column.title_cn}}</a>{% if column.radio %}[Radio]{% endif %}[{{column.get_count_show}}/{{column.get_count_downloaded_show}}]</div>
		</li>
		{% endfor %}
	</div>
	{% endif %}
	{% if pages %}
	<div class="pager">
		<ul>
		{% for p in pages %}
		{% ifequal p page %}
		<li class="cpage">{{p}}</li>
		{% else %}
		<li><a href="{{request.path}}?page={{p}}">{{p}}</a></li>
		{% endifequal %}
		{% endfor %}
		</ul>
	</div>
	{% endif %}	
{% endblock %}
{% block footer %}
{% endblock %}